package com.zy.edu.bean;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author HuangHaiShui
 * @since 2021-07-28
 */
@TableName("course_chapter_exercises")
@Data
public class CourseChapterExercises implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 课时id
     */
    @TableField("chapter_id")
    private String chapterId;
    /**
     * 排序顺序
     */
    private Integer num;
    /**
     * 题干
     */
    private String content;
    private String itema;
    private String itemb;
    private String itemc;
    private String itemd;
    //答案
    private String answer;
    //答案解析
    private String reason;
    //分值
    private Integer score;
    @TableField("create_time")
    @JSONField(format="yyyy-MM-dd hh:mm:ss")
    private Date createTime;

    //用于删除的，1 在用  0：待删除
    @JSONField(serialize = false)
    private Integer status;

    //保存学生的答案，用于查询学生课时的习题情况
    @TableField(exist = false)
    private CourseChapterExercisesStu stu;

}
